package com.fsquare.service.social;

import javax.annotation.Resource;

import com.fsquare.dao.social.SocialTokenDao;
import com.fsquare.domain.social.SocialToken;

public class SocialServiceImpl implements SocialService {
	
	@Resource(name = "socialTokenDao")
    protected SocialTokenDao socialTokenDao;
	
	@Override
	public SocialToken getSocialTokenByKey(String key) {
		return socialTokenDao.getSocialTokenByKey(key);
	}

	@Override
	public SocialToken saveSocialToken(SocialToken socialToken) {
		return socialTokenDao.saveSocialToken(socialToken);
	}

	@Override
	public SocialToken createSocialToken() {
		return socialTokenDao.createSocialToken();
	}

	@Override
	public SocialToken getSocialTokenById(Long id) {
		return socialTokenDao.getSocialTokenById(id);
	}

	@Override
	public SocialToken getSocialTokenByKeyAndProvider(String key, String provider) {
		return socialTokenDao.getSocialTokenByKeyAndProvider(key, provider);
	}

	@Override
	public SocialToken getSocialTokenByProviderAndUsername(String provider, String username) {
		return socialTokenDao.getSocialTokenByProviderAndUsername(provider, username);
	}

}
